package com.example.shiXun.service;

import com.example.shiXun.base.result.Results;
import com.example.shiXun.domain.SysUser;
import com.example.shiXun.dto.UserDto;

public interface UserService {
    SysUser getUser(String username);
    Results save(SysUser userDto, Integer roleId);

    Results<SysUser> getAllUsersByPage(Integer offset,Integer limit);


    SysUser getUserByPhone(String telephone);

    SysUser getUserByEmail(String email);

    SysUser getUserById(Long id);

    Results<SysUser> updateUser(UserDto userDto, Integer roleId);

    int deleteUser(Long id);

    Results<SysUser> getUserByFuzzyUsername(String username, Integer offset, Integer limit);
}
